﻿@model GoDive.App.DestViewModel

@{
    ViewBag.Title = "潜啊：一个专做潜水的自由社区";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section footer{
}
@{
    object destID = ViewContext.RouteData.Values["id"];
}
@Html.Partial("~/Views/Dest/detailShared.cshtml")
<div class="plcMenuBarHolder" id="tabs">
    <div class="plcMenuBars">
        <div class="plcMenuBar countryBar">
            <ul class="plcMenuBarList fontYaHei">
                <li class="jieshao"><a href="/dest/detail/@destID"><i class="icon"></i>潜点介绍</a></li>
                <li class="daoda current"><a href="/dest/traffic/@destID"><i class="icon"></i>到达方式</a></li>
                <li class="gonglve"><a href="/dest/article/@destID"><i class="icon"></i>潜水攻略</a></li>
                <li class="dianping"><a href="/dest/comment/@destID"><i class="icon"></i>点评</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="qd-wrap" id="modules">
    <div class="qd dd">
        <div class="title">
            <h2>到达方式</h2>
        </div>
        <ul>
            <li>
                <div class="item-title">
                    <h3>
                        @{
                            foreach (var item in Model.DestinationTraffics)
                            {
                                GoDive.App.TrafficTypeEnum trafficType;
                                Enum.TryParse(item.Type.ToString(), out trafficType);
                                string icon = string.Empty;
                                switch (trafficType)
                                {
                                    case GoDive.App.TrafficTypeEnum.Flight:
                                        icon = "icon-flight";
                                        break;
                                    case GoDive.App.TrafficTypeEnum.Boat:
                                        icon = "icon-ship";
                                        break;
                                    case GoDive.App.TrafficTypeEnum.Car:
                                        icon = "icon-car";
                                        break;
                                }
                                @item.Depart
                                if (trafficType != GoDive.App.TrafficTypeEnum.None)
                                {
                                    <span class="qdi"><i class="icon @icon"></i></span>
                                }
                            }
                        }
                        @*国内<span class="qdi"><i class="icon icon-flight"></i></span>马尼拉<span class="qdi"><i class="icon icon-ship"></i></span>塔比拉兰<span class="qdi"><i class="icon icon-car"></i></span></i>薄荷岛*@
                    </h3>
                </div>
                <div class="sub">
                    <div class="item">
                        @{
                            foreach (var item in Model.DestinationTraffics)
                            {
                                <p>@item.Desc</p>
                            }
                        }
                    </div>
                </div>
            </li>
        </ul>
    </div>
</div>
